<?php

class HTML_Fluent_XHTML_Element_TBODY extends HTML_Fluent_XHTML_Element_Base_TBODY {

    public function addRows(array $rows) {
        foreach ($rows as $row) {
            $this->addRow($row);
        }
        return $this;
    }

    public function addRow(array $row) {
        $tr = $this->tr();
        foreach ($row as $cell) {
            $tr->td($cell);
        }
        return $tr;
    }

}
